import request from '@/utils/request'

// 工单总数
export function getCount(params) {
  return request({
    url: '/business/assetAnalysis/selectWorkOrderNum',
    method: 'get',
    params
  })
}

// 工单占比
export function getPercent(params) {
  return request({
    url: '/business/assetAnalysis/selectWorkOrderProportion',
    method: 'get',
    params
  })
}

// 工单处理时效
export function getDelay(params) {
  return request({
    url: '/business/assetAnalysis/selectWorkOrderProcessingSpeed',
    method: 'get',
    params
  })
}

// 维修工单类型
export function getRepairType(params) {
  return request({
    url: '/business/assetAnalysis/selectWorkOrderType',
    method: 'get',
    params
  })
}

// 工单状态
export function getStatus(params) {
  return request({
    url: '/business/assetAnalysis/selectWorkOrderStatus',
    method: 'get',
    params
  })
}

// 紧急程度
export function getUrgency(params) {
  return request({
    url: '/business/assetAnalysis/selectWorkOrderUrgency',
    method: 'get',
    params
  })
}

// 工单累计时长
export function getDuration(params) {
  return request({
    url: '/business/assetAnalysis/selectWorkOrderAccumulatedTime',
    method: 'get',
    params
  })
}

// 巡检工单问题反馈
export function getFeedback(params) {
  return request({
    url: '/business/assetAnalysis/selectWorkOrderInspectionFeedback',
    method: 'get',
    params
  })
}

// 工单处理排名
export function getRank(params) {
  return request({
    url: '/business/assetAnalysis/selectWorkOrderProcessingRank',
    method: 'get',
    params
  })
}
